@using BlazorApp.Pages.Common.Metadata
@using BlazorApp.Pages.Container
@using BlazorApp.Pages.Event
@using BlazorApp.Pages.Service
@using k8s.Models
@inherits BlazorApp.Pages.Common.DrawerPageBase<V1Pod>
@if (Item != null)
{
    <PodAction PodItem="Item" MenuMode="MenuMode.Horizontal"></PodAction>
    @if (_isMetricsServerReady && Item.Status.Phase == "Running")
    {
        <ContainerMetricsView PodName="@Item.Name()" Containers="@Item.Spec.Containers"></ContainerMetricsView>
    }

    <Divider Orientation="left" Style="font-weight:bold">@L["Metadata"]</Divider>
    <MetadataView Item="Item.Metadata" ExplainFieldPrefix="pod"></MetadataView>

    <Divider Orientation="left" Style="font-weight:bold">@L["Spec"]</Divider>
    <PodSpecView PodSpec="@Item.Spec" PodName="@Item.Metadata.Name" PodNamespace="@Item.Metadata.NamespaceProperty"></PodSpecView>
    <Divider Orientation="left" Style="font-weight:bold">@L["Status"]</Divider>
    <PodStatusView PodStatus="@Item.Status"></PodStatusView>

    <MiniServiceListView Labels="@Item.Metadata.Labels"></MiniServiceListView>

    <MiniEventListView Uid="@Item.Metadata.Uid"></MiniEventListView>
}
